using System;
using System.Collections.Generic;
using hao_Common.Dapper.Repository;

namespace hao_Model
{
    /// <summary>
    /// 商品留言实体
    /// </summary>
    public class ProductComment : ISoftDelete
    {
        /// <summary>
        /// 留言唯一标识
        /// </summary>
        public Guid Id { get; set; }

        /// <summary>
        /// 商品ID
        /// </summary>
        public Guid ProductId { get; set; }

        /// <summary>
        /// 留言用户ID
        /// </summary>
        public Guid UserId { get; set; }

        /// <summary>
        /// 留言内容，200字以内
        /// </summary>
        public string Content { get; set; }

        /// <summary>
        /// 父留言ID（用于回复，null表示顶级留言）
        /// </summary>
        public Guid? ParentId { get; set; }

        /// <summary>
        /// 点赞数量
        /// </summary>
        public int LikeCount { get; set; }

        /// <summary>
        /// 留言创建时间
        /// </summary>
        public DateTime CreatedAt { get; set; }

        /// <summary>
        /// 留言更新时间
        /// </summary>
        public DateTime UpdatedAt { get; set; }

        /// <summary>
        /// 软删除标记
        /// </summary>
        public bool IsDeleted { get; set; }
    }
}